import {Injectable,Component,Directive,Pipe} from '@angular/core';
import {Http, Response} from '@angular/http';
import { Observable } from 'rxjs/Rx';
import {User} from './user';

@Injectable()
export class UserService {

  constructor(private http: Http) {}

  getUserService() {
      return this.http.get('../assets/data/user.json').map(res => {
        return res.json().user;
      });
  }
}
